#pragma once

#include <QDoubleSpinBox>
#include <QCheckBox>
#include "particledefine.h"

namespace ParticleEditor
{
	class EmitterSettingWidget:public QWidget
	{
		Q_OBJECT
	public:
		EmitterSettingWidget(QWidget* parent = NULL);
		~EmitterSettingWidget();

		void initEmitter(ParticleSystemLayer psl);
		void copyLayer(ParticleSystemLayer psl,ParticleSystemLayer newpsl);
	private:
		//QDoubleSpinBox*								_emitterLifeSpinBox;
		QDoubleSpinBox*								_emitterStartSpinBox;
		QDoubleSpinBox*								_emitterResetSpinBox;
		QCheckBox*									_foreverBox;
		ParticleSystemLayer							_particleSystemLayer;
	private slots:
		//void slotsLifeSpinBoxValueChanged(double);
		void slotsStartSpinBoxValueChanged(double);
		void slotsResetSpinBoxValueChanged(double);
		void slotsForeverBoxStateChanged(int);
	};
}